package com.gitee.mall.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gitee.common.to.mq.SeckillOrderTo;
import com.gitee.common.utils.PageUtils;
import com.gitee.mall.order.entity.OrderEntity;
import com.gitee.mall.order.vo.*;

import java.util.Map;

/**
 * 订单
 *
 * @author acao
 * @email acao@163.com
 * @date 2024-05-20 17:39:11
 */
public interface OrderService extends IService<OrderEntity> {

    PageUtils queryPage(Map<String, Object> params);

    OrderConfirmVo confirmOrder();

    SubmitOrderResponseVo submitOrder(OrderSubmitVo vo);

    void closeOrder(OrderEntity entity);

    PayVo getOrderPay(String orderSn);

    OrderEntity getOrderByOrderSn(String orderSn);

    String handlePayResult(PayAsyncVo vo);

    void seckillOrder(SeckillOrderTo seckillOrderTo);
}

